package net.hn.hnms.biz.quality.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Author: ly
 * 煤质信息表
 */
@Data
@ApiModel("煤质信息表")
public class CoalQualityReq extends BaseReq {
    @ApiModelProperty(value = "主键ID")
    private String coalQualityId;
    @ApiModelProperty(value = "日期")
    @JsonFormat(
            pattern = "yyyy-MM"
    )
    @NotNull(message = "日期不能为空")
    private String coalQualityDate;

    @ApiModelProperty(value = "灰份（%）")
    @Digits(integer = 10, fraction = 2, message = "灰份（%）格式不正确")
    @DecimalMin(value = "0.00", message = "灰份（%）格式不正确")
    @NotNull(message = "灰份（%）不能为空")
    private BigDecimal ash;


    @ApiModelProperty(value = "全水份（%）")
    @Digits(integer = 10, fraction = 2, message = "全水份（%）格式不正确")
    @DecimalMin(value = "0.00", message = "全水份（%）格式不正确")
    @NotNull(message = "全水份（%）不能为空")
    private BigDecimal moistureTotal;


    @ApiModelProperty(value = "含矸率（%）")
    @Digits(integer = 10, fraction = 2, message = "含矸率（%）格式不正确")
    @DecimalMin(value = "0.00", message = "含矸率（%）格式不正确")
    @NotNull(message = "含矸率（%）不能为空")
    private BigDecimal shaleContent;


    @ApiModelProperty(value = "低位发热量(MJ/KG)")
    @Digits(integer = 10, fraction = 2, message = "低位发热量(MJ/KG)格式不正确")
    @DecimalMin(value = "0.00", message = "低位发热量(MJ/KG)格式不正确")
    @NotNull(message = "低位发热量(MJ/KG)不能为空")
    private BigDecimal netCalorificValue;

    @ApiModelProperty(value = "挥发份(%)")
    @Digits(integer = 10, fraction = 2, message = "挥发份(%)格式不正确")
    @DecimalMin(value = "0.00", message = "挥发份(%)格式不正确")
//    @NotNull(message = "挥发份(%)不能为空")
    private BigDecimal volatileMatter;

    @ApiModelProperty(value = "煤矿编码")
    private String mineCode;
}









